import { req,uploadFile } from '../utils/req.js';

export default {
  //出租项目信息列表
  leaseList() {
    return req.get("api/home/item/leaseList")
  },
  makeLease(param){
    return req.post("api/home/item/makeLease",param) 
  },
  fixLeasePrice(param){
    return req.post("api/home/item/priceRevise",param) 
  },
  leaseInfoList(param){
    return req.post("api/home/item/leaseInfo",param) 
  },
  leasePrePay(param){
    return req.post("api/home/pay/prePayRequest",param) 
  },
  saledLeases(param){
    return req.post("api/home/item/saledLeases",param) 
  },  
  purchasedLeases(param){
    return req.post("api/home/item/purchasedLeases",param) 
  },
  unreadCount(){
    return req.post("api/home/item/unread") 
  },
  formIdAdd(param){
    return req.post("api/home/item/formIdAdd",param) 
  },
  uploadHeadImage(param){
    return uploadFile('api/public/fileUpload',param)
  }
}